<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<c:set var="jpath" value="${pageContext.request.contextPath }"/>
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<title>添加行业</title>
		<%@include  file="../css.jsp"%>
	
	</head>

	<body>
	<div class="page-header">
		<h1>
			用户行业
			<small>
				<i class="icon-double-angle-right"></i>
				添加
			</small>
		</h1>
	</div><!-- /.page-header -->

	<div class="row">
		<div class="col-xs-12">
			<form class="form-horizontal" id="usForm"  method="post" action="" role="form">
				<div class="form-group">
					<label class="col-sm-3 control-label no-padding-right" for="form-field-1">编号</label>

					<div class="col-sm-9">
						<input type="text" id="UserIndustryId" name="UserIndustryId"  placeholder="编号" class="col-xs-10 col-sm-5" />
					</div>
				</div>
				
				<div class="form-group">
					<label class="col-sm-3 control-label no-padding-right" for="form-field-1">行业名称</label>

					<div class="col-sm-9">
						<input type="text" id="IndustryName" name="IndustryName" placeholder="行业名称" class="col-xs-10 col-sm-5" />
					</div>
				</div>
				
				<div class="form-group">
					<label class="col-sm-3 control-label no-padding-right" for="form-field-1">行业状态</label>
					<div class="col-sm-9">
						<input type="text" id="IndustryState" name="IndustryState"  placeholder="行业状态" class="col-xs-10 col-sm-5" />
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label no-padding-right" for="form-field-1">上级行业</label>
					<div class="col-sm-9">
						<input type="text" id="SuperiorIndustry" name="SuperiorIndustry"  placeholder="上级行业" class="col-xs-10 col-sm-5" />
					</div>
				</div>
				<div class="clearfix form-actions" style="background-color:  #E4E6E9">
					<div class="col-md-offset-3 col-md-9">
						<button class="btn btn-info" id="submitBtn"  type="button">
							<i class="icon-ok bigger-110"></i>
							提交
						</button>
						&nbsp; &nbsp; &nbsp;
						<button class="btn" id="ss" type="reset">
							<i class="icon-undo bigger-110"></i>
							刷新
						</button>
					</div>
				</div>
			</form>
		</div><!-- /.col -->
	</div><!-- /.row -->
<%@include  file="../js.jsp"%>
<script type="text/javascript">
	$("#submitBtn").click(function(){
		var jsonForms=getForm("#usForm");
		$.post("${jpath}/Industry/Add",jsonForms,function(data){
				var json=$.parseJSON(data);
				alert(json.resMsg);
				location.href="${jpath}/Industrycontent";
			}
			
		);
	});
</script>
</body>
</html>
